<%@page import="org.entity.WuLiuMessage"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>货物追踪</title>
<link rel="stylesheet" type="text/css" href="Assets/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="Assets/css/common.css"/>
<link rel="stylesheet" type="text/css" href="Assets/css/thems.css"/>
<script type="text/javascript" src="Assets/js/jquery-3.1.0.min.js" language="javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#chaxun").submit(function(){
		if($("#orderid").val()==""){
			alert("请输入订单号");
			return false;
		}else{
			return true;
		}
		
	});
	
});
</script>
</head>

<body>
<!--头部-->
<div class="head_bg">
	<div class="head clearfix">
    	<div class="logo"><a href="index.jsp"><img src="Assets/images/logo.png" alt=""/></a></div>
        <div class="menu">
        	 <c:if test="${sessionScope.loginsuccess!=true}">
		        	<div class="head_top">
		        	<%
		        		response.sendRedirect("login.jsp");
		        	%>
		            </div>
		     </c:if>
		     <c:if test="${sessionScope.loginsuccess==true}">
		     		<div class="head_top">
		            	用户&nbsp;${sessionScope.username}&nbsp;已登录
		            	<a href="clearlogin" class="submit">退出</a>
		            </div>
		     </c:if>
            <ul class="clearfix">
            	<li class="now"><a href="index.jsp">首页</a></li>
                <li><a href="personal.jsp">我的资料</a></li>
				<li><a href="OrderQuery">我的物流</a></li>
				<li><a href="book.jsp">网上下单</a></li>
                <li><a href="news_d.jsp">帮助与支持</a></li>
                <li><a href="about.jsp">萤火物流</a></li>
            </ul>
        </div>
    </div>
</div>
<!--头部-->
<!--中间部分-->
<div class="main">
	<div class="book">
    	<div class="tabBox_t">
            <div class="tabBox">
              <ul class="tabNav">
                <li><a href="book.jsp">网上下单</a></li>
                <li class="now"><em>货物追踪</em><span>&nbsp;</span></li>
              </ul>
              <div class="tabCont" style="display:block;">
              	<div class="follow_m">
                	<div class="space_hx">&nbsp;</div>
                	<div class="follow_mtop">
                    	<form action="InfoServlet" method="post" id="chaxun">
                        	<input name="orderid" value="" id="orderid" type="text" placeholder="请输入订单编号）">
                            <input type="submit" value="查询">
                            
                        </form>
                    </div>
                    <div class="space_hx">&nbsp;</div>
                    <div class="follow_main">
                    	<ul>
                        		<%
                        			WuLiuMessage wuLiuMessage=(WuLiuMessage)session.getAttribute("wuLiuMessage");
                        			List<String> list=wuLiuMessage.getMessages();
                        			for(String info:list){%>
                    		<li>
                        			
                        			<%	out.print(wuLiuMessage.getOrderid()+"  "+info); %>
                        	</li>
                        		
                        		<%		}
                        		%>
                        </ul>
                    </div>
                </div>	
              </div>
            </div>
        </div>
    </div>
    <div class="space_hx">&nbsp;</div>
</div>
<!--中间部分-->
<div class="space_hx">&nbsp;</div>
<!--底部-->
<div class="foot_bg">
	<div class="foot">
    	<div class="foot_t">

        </div>
        <div class="copy">
        <a href="guanliyuan.jsp">管理员</a>
        	Copyright&copy;&nbsp;2012-2015&nbsp; 找物流有限责任公司.&nbsp;&nbsp;All&nbsp;&nbsp;rights&nbsp;&nbsp;reserved. &nbsp;&nbsp;粤ICP备10005645
        </div>
    </div>	
</div>
<!--底部-->
</body>
</html>
